using Itech_Run.HttpApi.Host;

var builder = Host.CreateDefaultBuilder(args);
builder.ConfigureWebHostDefaults(webBuilder =>
{
    webBuilder.ConfigureServices(serviceCollection =>
    {
        serviceCollection.AddApplication<Itech_RunHttpApiHostModule>();
    });
    webBuilder.Configure(configureApp =>
    {
        configureApp.InitializeApplication();
    });
});
builder.ConfigureLogging(configureLogging => { configureLogging.AddLog4Net("log4net.config"); });
builder.UseAutofac();

builder.Build().Run();